<admintpl file="header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:U('index')}">开奖记录</a></li>
        <li><a href="{:U('add')}">添加开奖</a></li>
        <li><a href="{:U('automake')}">生成开奖数据</a></li>
    </ul>
    <form class="well form-search" method="post" action="{:U('index')}">
        开奖期号：
        <input type="text" name="qishu" style="width: 100px;" value="{:I('request.qishu')}" placeholder="开奖期号">&nbsp;&nbsp;
        开奖时间:
        <input type="text" name="start_time" class="js-date " value="{:I('request.start_time',date('Y-m-d'))}" style="width: 80px;" autocomplete="off">&nbsp;&nbsp;
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="{:U('index')}">清空</a>
        <!--<a class="btn btn-success" href="{:U('export')}">导出数据</a>-->
    </form>
    <form class="js-ajax-form" method="post" novalidate="novalidate">
        <div class="pagination">{$page}</div>
        <div class="table-actions">
            <button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('delete')}" data-subcheck="true" data-msg="你确定删除吗？">批量删除</button>
        </div>
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
                <th align="center">ID</th>
                <th>开奖时间</th>
                <th>开奖期号</th>
                <th>号码1</th>
                <th>号码2</th>
                <th>号码3</th>
                <th>号码4</th>
                <th>号码5</th>
                <th>号码6</th>
                <th>大小</th>
                <th>单双</th>
                <th>豹顺</th>
                <th>最后更新时间</th>
                <th align="center">操作</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="lists" item="vo">
                <tr>
                    <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.id}"></td>
                    <td align="center">{$vo.id}</td>
                    <td>{$vo.create_time}</td>
                    <td>{$vo.qishu}</td>
                    <td>{$vo.num_1}</td>
                    <td>{$vo.num_2}</td>
                    <td>{$vo.num_3}</td>
                    <td>{$vo.num_4}</td>
                    <td>{$vo.num_5}</td>
                    <td>{$vo.num_6}</td>
                    <php>$data = analysis_num($vo['num_1'],$vo['num_2'],$vo['num_3'],$vo['num_4'],$vo['num_5'],$vo['num_6'])</php>
                    <td>{$data['da']}{$data['xiao']}</td>
                    <td>{$data['dan']}{$data['shuang']}</td>
                    <td>{$data['bao']}{$data['shun']}</td>
                    <td>{$vo.update_time}</td>
                    <td align="center">
                        <a href="{:U('edit',array('id'=>$vo['id']))}">编辑</a> |
                        <a href="{:U('delete',array('id'=>$vo['id']))}" class="js-ajax-delete">删除</a>
                    </td>
                </tr>
            </foreach>
            </tbody>
            <tfoot>
            <tr>
                <th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
                <th align="center">ID</th>
                <th>开奖时间</th>
                <th>开奖期号</th>
                <th>号码1</th>
                <th>号码2</th>
                <th>号码3</th>
                <th>号码4</th>
                <th>号码5</th>
                <th>号码6</th>
                <th>大小</th>
                <th>单双</th>
                <th>豹顺</th>
                <th>最后更新时间</th>
                <th align="center">操作</th>
            </tr>
            </tfoot>
        </table>
        <div class="table-actions">
            <button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('delete')}" data-subcheck="true" data-msg="你确定删除吗？">批量删除</button>
        </div>
        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>